/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Data;

/**
 *
 * @author REI
 */
public class Tipo_funcion {
    
    public int NULL =  -1; //variables
    public int WHILE =  0;
    public int FOR =    1;
    public int IF =     2;
    public int ELSE =   3;
    public int SWITCH = 4;
    public int CASE =   5;
    public int DEFAULT = 6;
    public int DO = 7;
    public int FUNCION = 8;
    public int MATRIZ = 9;
    public int ELSE_IF = 10;
    public int INSTANCIA = 11;
    
    public String get_tipo_funcion(int num){
        switch(num){
            case -1:
                return "var";
            case 0:
                return "while";
            case 1:
                return "for";
            case 2:
                return "if";
            case 3:
                return "else";
            case 4:
                return "switch";
            case 5:
                return "case";
            case 6:
                return "default";
            case 7:
                return "do";
            case 8:
                return "funcion";
            case 9:
                return "matriz";
            case 10:
                return "else_if";
            case 11:
                return "instancia";
            default:
                return null;
                
        }
        
    }
    
}
